import psycopg2
import Pyconfig

conn_out = psycopg2.connect(database=Pyconfig.YnOutDb.database, user=Pyconfig.YnOutDb.user, password=Pyconfig.YnOutDb.password, host=Pyconfig.YnOutDb.host, port=Pyconfig.YnOutDb.port)

conn_yd = psycopg2.connect(database=Pyconfig.YnYdDb.database, user=Pyconfig.YnYdDb.user, password=Pyconfig.YnYdDb.password, host=Pyconfig.YnYdDb.host, port=Pyconfig.YnYdDb.port)

